home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update19.zoo / gcc2.1 / Makefile.st < prev    next >
Encoding:
Makefile  |  1992-03-28  |  18.3 KB  |  500 lines

  1. # Makefile for GNU C NATIVE COMPILER for the atariST/TT series hosted
  2. #  on a Sparc host (tested only on Sun)S 4.0.3)
  3. #  NOTE: requires alloca.c from the emacs dist.
  4. #
  5.  
  6. # Makefile for GNU C compiler.
  7. #   Copyright (C) 1987 Free Software Foundation, Inc.
  8.  
  9. #This file is part of GNU CC.
  10.  
  11. #GNU CC is distributed in the hope that it will be useful,
  12. #but WITHOUT ANY WARRANTY.  No author or distributor
  13. #accepts responsibility to anyone for the consequences of using it
  14. #or for whether it serves any particular purpose or works at all,
  15. #unless he says so in writing.  Refer to the GNU CC General Public
  16. #License for full details.
  17.  
  18. #Everyone is granted permission to copy, modify and redistribute
  19. #GNU CC, but only under the conditions described in the
  20. #GNU CC General Public License.   A copy of this license is
  21. #supposed to have been given to you along with GNU CC so you
  22. #can know your rights and responsibilities.  It should be in a
  23. #file named COPYING.  Among other things, the copyright notice
  24. #and this notice must be preserved on all copies.
  25.  
  26. .NOEXPORT: # This tells GNU Make version 3
  27.        # not to put all the variables in the environment.
  28.  
  29.  
  30. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  31. CROSSBIN = $(CROSSDIR)/bin
  32. CROSSLIB = $(CROSSDIR)/lib
  33. CROSSINC = $(CROSSDIR)/include
  34.  
  35. CFLAGS = -O -fomit-frame-pointer -I$(CROSSINC) -I./config -I. -Datarist=1
  36. HOSTCFLAGS = -O -I./config -I.
  37. CC = $(CROSSBIN)/cgcc
  38. # hosts cc
  39. HOSTCC=gcc
  40. # OLDCC should not be the GNU C compiler.
  41. OLDCC = cc
  42. BISON = bison
  43. BISONFLAGS=
  44. AR = ar
  45. SHELL = /bin/sh
  46.  
  47. bindir = 
  48. libdir = 
  49.  
  50. # These are what you would need on HPUX:
  51. # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  52. # -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
  53. # bites whenever tree.def, rtl.def or machmode.def is included
  54. # (ie., on every source file).
  55. # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  56. # For CCLIBFLAGS you might want to specify the switch that
  57. # forces only 68000 instructions to be used.
  58.  
  59. # If you are making gcc for the first time, and if you are compiling it with
  60. # a non-gcc compiler, and if your system doesn't have a working alloca() in any
  61. # of the standard libraries (as is true for HP/UX or Genix),
  62. # then get alloca.c from GNU Emacs and un-comment the following line:
  63. # ALLOCA = alloca.o
  64.  
  65. # If your system has alloca() in /lib/libPW.a, un-comment the following line:
  66. # CLIB= -lPW
  67.   
  68. # If your system's malloc() routine fails for any reason (as it does on
  69. # certain versions of Genix), try getting the files
  70. # malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
  71. # MALLOC = malloc.o
  72.  
  73. # If you are running GCC on an Apollo, you will need this:
  74. # CFLAGS = -g -O -M 3000 -U__STDC__ -DSHORT_ENUM_BUG
  75.  
  76. # Change this to a null string if obstacks are installed in the
  77. # system library.
  78. OBSTACK=obstack.o
  79. OBSTACK1=obstack.oo
  80.  
  81. # Dependency on obstack, alloca, malloc or whatever library facilities
  82. # are not installed in the system libraries.
  83. LIBDEPS= $(OBSTACK)
  84. LIBDEPS1= $(OBSTACK1) $(HOSTALLOCA) $(MALLOC)
  85.  
  86. # How to link with both our special library facilities
  87. # and the system's installed libraries.
  88. LIBS = $(OBSTACK)
  89. LIBS1 = $(OBSTACK1) $(HOSTALLOCA) $(MALLOC) $(MALLOC1) $(CLIB)
  90.  
  91. DIR = ../gcc
  92.  
  93. # Object files of CC1.
  94. # Language-specific object files for C.
  95. C_OBJS = c-parse.o c-lang.o \
  96.    c-lex.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o
  97.  
  98. # Language-specific object files for C++.
  99. CPLUS_OBJS = cp-parse.o cp-decl.o cp-decl2.o \
  100.    cp-typeck.o cp-type2.o cp-tree.o cp-ptree.o \
  101.    cp-cvt.o cp-search.o cp-lex.o cp-gc.o cp-call.o \
  102.    cp-class.o cp-init.o cp-method.o cp-except.o \
  103.    cp-expr.o cp-pt.o cp-edsel.o cp-xref.o \
  104.    $(CPLUS_INPUT) cp-spew.o c-common.o
  105.  
  106. # Language-independent object files.
  107. OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
  108.  function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
  109.  rtl.o print-rtl.o rtlanal.o dbxout.o sdbout.o dwarfout.o emit-rtl.o \
  110.  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
  111.  regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o \
  112.  insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
  113.  insn-recog.o insn-extract.o insn-output.o insn-emit.o \
  114.  insn-attrtab.o aux-output.o getpwd.o
  115.  
  116. GCC_PASSES=gcc cc1 cpp
  117.  
  118. # Files to be copied away after each stage in building.
  119. STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
  120.  insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
  121.  insn-attr.h insn-attrtab.c \
  122.  stamp-flags stamp-config stamp-codes \
  123.  stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
  124.  stamp-attr stamp-attrtab \
  125.  genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
  126.  genattrtab genattr \
  127.  $(GCC_PASSES) $(EXTRA_PARTS) gcc-cross cccp cc1plus cc1obj enquire \
  128.  protoize unprotoize specs collect2
  129.  
  130. # Header files that are made available to programs compiled with gcc.
  131. USER_H = stddef.h stdarg.h assert.h va-*.h limits.h
  132.  
  133. # If you want to recompile everything, just do rm *.o.
  134. # CONFIG_H = config.h tm.h
  135. CONFIG_H =
  136. RTL_H = rtl.h rtl.def machmode.h machmode.def
  137. TREE_H = tree.h real.h tree.def machmode.h machmode.def
  138. CPLUS_TREE_H = $(TREE_H) cp-tree.h cp-tree.def
  139.  
  140. ALL =  gcc.ttp gcc-cc1.ttp gcc-cpp.ttp
  141.  
  142. all : $(ALL)
  143.  
  144. compilations: ${OBJS}
  145.  
  146. gcc.ttp: gcc.o version.o $(LIBDEPS)
  147.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc.ttp gcc.o version.o $(LIBS)
  148.  
  149. gcc.o: gcc.c $(CONFIG_H)
  150.     $(CC) $(CFLAGS) -DDEFAULT_TARGET_MACHINE=\"atariST\" -c gcc.c
  151.  
  152. gcc-cc1.ttp: $(C_OBJS) $(OBJS) $(LIBDEPS)
  153.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1.ttp $(C_OBJS) $(OBJS) $(LIBS)
  154.  
  155. gcc-cc1+.ttp: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
  156.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1+.ttp $(CPLUS_OBJS) $(OBJS) $(LIBS)
  157.  
  158. gcc-cc1o.ttp: $(OBJC_OBJS) $(OBJS) $(LIBDEPS)
  159.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1o.ttp $(OBJC_OBJS) $(OBJS) $(LIBS)
  160.  
  161. # C-language specific files.
  162.  
  163. c-parse.o : c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h input.h flags.h
  164.     $(CC) $(CFLAGS) -c c-parse.c
  165. c-parse.c c-parse.h: c-parse.y
  166.     $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
  167.  
  168. c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  169. c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  170. c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
  171. c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h c-parse.h \
  172.     input.h flags.h
  173. c-aux-info.o : c-aux-info.c  $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  174. c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
  175.  
  176. # C++ language specific files.
  177.  
  178. cp-parse.o : cp-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  179.     $(CC) -c $(CFLAGS) cp-parse.c
  180.  
  181. cp-parse.c cp-parse.h : cp-parse.y
  182.     @echo expect 30 shift/reduce conflicts and 14 reduce/reduce conflicts
  183.     $(BISON) $(BISONFLAGS) -d -o cp-parse.c cp-parse.y
  184.  
  185. cp-spew.o : cp-spew.c $(CONFIG_H) $(CPLUS_TREE_H) \
  186.    cp-parse.h flags.h
  187. cp-lex.o : cp-lex.c $(CONFIG_H) $(CPLUS_TREE_H) \
  188.    cp-parse.h cp-input.c flags.h
  189. cp-decl.o : cp-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  190.   cp-lex.h cp-decl.h stack.h
  191. cp-decl2.o : cp-decl2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  192.   cp-lex.h cp-decl.h
  193. cp-type2.o : cp-type2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  194. cp-typeck.o : cp-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  195. cp-class.o : cp-class.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h \
  196.     cp-class.h flags.h
  197. cp-call.o : cp-call.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h cp-class.h \
  198.     flags.h
  199. cp-init.o : cp-init.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  200. cp-method.o : cp-method.c $(CONFIG_H) $(CPLUS_TREE_H)
  201. cp-cvt.o : cp-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
  202. cp-search.o : cp-search.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  203. cp-tree.o : cp-tree.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  204. cp-ptree.o : cp-ptree.c $(CONFIG_H) $(CPLUS_TREE_H)
  205. cp-gc.o : cp-gc.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  206. cp-except.o : cp-except.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  207. cp-expr.o : cp-expr.c $(CONFIG_H) $(CPLUS_TREE_H) $(RTL_H) flags.h \
  208.   expr.h insn-codes.h
  209. cp-edsel.o : cp-edsel.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  210. cp-xref.o : cp-xref.c $(CONFIG_H) $(CPLUS_TREE_H)
  211. cp-pt.o : cp-pt.c $(CONFIG_H) $(CPLUS_TREE_H) cp-decl.h cp-parse.h
  212.  
  213. # Objectionable C language specific files.
  214.  
  215. objc-parse.o : objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
  216.    c-tree.h input.h flags.h objc-actions.h
  217.     $(CC) $(CFLAGS) -c objc-parse.c
  218. objc-parse.c : objc-parse.y
  219.     $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c
  220.  
  221. objc-actions.o : objc-actions.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h \
  222.    flags.h objc-actions.h
  223.  
  224. # A file used by all variants of C.
  225.  
  226. c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  227.  
  228.  
  229. # Language-independent files.
  230. dumpvers: dumpvers.c
  231.  
  232. version.o: version.c
  233. obstack.o: obstack.c
  234.  
  235. tree.o : tree.c $(CONFIG_H) $(TREE_H) gvarargs.h flags.h function.h
  236. print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
  237. stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
  238. fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h 
  239. toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h \
  240.  insn-attr.h xcoffout.h
  241.  
  242. rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
  243.  
  244. print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
  245. rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
  246.  
  247. varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h \
  248.    insn-codes.h expr.h hard-reg-set.h regs.h xcoffout.h
  249. function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  250.    insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
  251.    recog.h output.h
  252. stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  253.    insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h recog.h
  254. expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) gvarargs.h flags.h function.h  \
  255.    insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h typeclass.h
  256. calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h \
  257.    insn-flags.h
  258. expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  259.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h real.h
  260. explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
  261.    insn-config.h expr.h recog.h insn-flags.h insn-codes.h
  262. optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  263.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h
  264. dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h \
  265.    insn-config.h reload.h gstab.h xcoffout.h
  266. sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h flags.h \
  267.    insn-config.h reload.h
  268. dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) dwarf.h flags.h \
  269.    insn-config.h reload.h output.h
  270. xcoffout.o : xcoffout.c $(CONFIG_H) $(TREE_H) $(RTL_H) xcoffout.h flags.h
  271. emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) flags.h gvarargs.h function.h  \
  272.    regs.h insn-config.h insn-codes.h real.h expr.h
  273.  
  274. integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
  275.    insn-flags.h insn-config.h insn-codes.h expr.h real.h function.h
  276.  
  277. jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
  278.    insn-config.h insn-flags.h insn-codes.h expr.h real.h
  279. stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
  280.  
  281. cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
  282.    insn-config.h recog.h
  283. loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \
  284.    insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h
  285. unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
  286.    integrate.h regs.h flags.h expr.h loop.h
  287. flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
  288.    basic-block.h regs.h hard-reg-set.h output.h
  289. combine.o : combine.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h  \
  290.    insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
  291.    basic-block.h recog.h real.h
  292. regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
  293.    basic-block.h regs.h insn-config.h recog.h 
  294. local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
  295.    regs.h hard-reg-set.h insn-config.h recog.h output.h
  296. global-alloc.o : global-alloc.c $(CONFIG_H) $(RTL_H) flags.h  \
  297.    basic-block.h regs.h hard-reg-set.h insn-config.h output.h
  298.  
  299. reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
  300.    reload.h recog.h hard-reg-set.h insn-config.h insn-codes.h regs.h real.h
  301. reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h expr.h \
  302.    reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
  303.    basic-block.h recog.h output.h
  304. caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
  305.    regs.h hard-reg-set.h insn-config.h basic-block.h recog.h reload.h expr.h
  306. reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
  307.    basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
  308.    flags.h output.h
  309. sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
  310.    flags.h insn-config.h insn-attr.h
  311. final.o : final.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h regs.h \
  312.    recog.h conditions.h insn-config.h insn-attr.h real.h output.h \
  313.    hard-reg-set.h insn-codes.h gstab.h xcoffout.h
  314. recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
  315.    regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
  316.    insn-flags.h insn-codes.h real.h
  317. reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
  318.    regs.h hard-reg-set.h flags.h insn-config.h
  319.    
  320. aux-output.o : aux-output.c $(CONFIG_H) \
  321.    $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
  322.    insn-flags.h output.h insn-attr.h insn-codes.h
  323.  
  324. # Now the source files that are generated from the machine description.
  325.  
  326. .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
  327.   insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
  328.   insn-attr.h insn-attrtab.c
  329.  
  330. insn-config.h : md genconfig
  331.     ./genconfig md > tmp-insn-config.h
  332.     ./move-if-change tmp-insn-config.h insn-config.h
  333.  
  334. insn-flags.h : md genflags
  335.     ./genflags md > tmp-insn-flags.h
  336.     ./move-if-change tmp-insn-flags.h insn-flags.h
  337.  
  338. insn-codes.h : md gencodes
  339.     ./gencodes md > tmp-insn-codes.h
  340.     ./move-if-change tmp-insn-codes.h insn-codes.h
  341.  
  342. insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h insn-config.h
  343.     $(CC) $(CFLAGS) -c insn-emit.c
  344.  
  345. insn-emit.c : md genemit
  346.     ./genemit md > tmp-insn-emit.c
  347.     ./move-if-change tmp-insn-emit.c insn-emit.c
  348.  
  349. insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
  350.     $(CC) $(CFLAGS) -c insn-recog.c
  351.  
  352. insn-recog.c : md genrecog
  353.     ./genrecog md > tmp-insn-recog.c
  354.     ./move-if-change tmp-insn-recog.c insn-recog.c
  355.  
  356. insn-extract.o : insn-extract.c $(RTL_H)
  357.     $(CC) $(CFLAGS) -c insn-extract.c
  358.  
  359. insn-extract.c : md genextract
  360.     ./genextract md > tmp-insn-extract.c
  361.     ./move-if-change tmp-insn-extract.c insn-extract.c
  362.  
  363. insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h
  364.     $(CC) $(CFLAGS) -c insn-peep.c
  365.  
  366. insn-peep.c : md genpeep
  367.     ./genpeep md > tmp-insn-peep.c
  368.     ./move-if-change tmp-insn-peep.c insn-peep.c
  369.  
  370. insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h insn-flags.h conditions.h output.h aux-output.c
  371.     $(CC) $(CFLAGS) -c insn-output.c
  372.  
  373. insn-output.c : md genoutput
  374.     ./genoutput md > tmp-insn-output.c
  375.     ./move-if-change tmp-insn-output.c insn-output.c
  376.  
  377. insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
  378.      insn-attr.h insn-config.h
  379.     $(CC) $(CFLAGS) -c insn-attrtab.c
  380.  
  381. insn-attr.h: md genattr
  382.     ./genattr md > tmp-attr.h
  383.     ./move-if-change tmp-attr.h insn-attr.h
  384.  
  385. insn-attrtab.c: md genattrtab
  386.     ./genattrtab md > tmp-attrtab.c
  387.     ./move-if-change tmp-attrtab.c insn-attrtab.c
  388.  
  389.  
  390. # Now the programs that generate those files.
  391.  
  392. genconfig : genconfig.oo rtl.oo $(LIBDEPS1)
  393.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o genconfig genconfig.oo rtl.oo $(LIBS1)
  394.  
  395. genconfig.oo : genconfig.c $(RTL_H)
  396.     $(HOSTCC) $(HOSTCFLAGS) -c genconfig.c -o genconfig.oo
  397.  
  398. genflags : genflags.oo rtl.oo $(LIBDEPS1)
  399.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o genflags genflags.oo rtl.oo $(LIBS1)
  400.  
  401. genflags.oo : genflags.c $(RTL_H)
  402.     $(HOSTCC) $(HOSTCFLAGS) -c genflags.c -o genflags.oo
  403.  
  404. gencodes : gencodes.oo rtl.oo $(LIBDEPS1)
  405.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o gencodes gencodes.oo rtl.oo $(LIBS1)
  406.  
  407. gencodes.oo : gencodes.c $(RTL_H)
  408.     $(HOSTCC) $(HOSTCFLAGS) -c gencodes.c -o gencodes.oo
  409.  
  410. genemit : genemit.oo rtl.oo $(LIBDEPS1)
  411.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o genemit genemit.oo rtl.oo $(LIBS1)
  412.  
  413. genemit.oo : genemit.c $(RTL_H)
  414.     $(HOSTCC) $(HOSTCFLAGS) -c genemit.c -o genemit.oo
  415.  
  416. genrecog : genrecog.oo rtl.oo $(LIBDEPS1)
  417.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o genrecog genrecog.oo rtl.oo $(LIBS1)
  418.  
  419. genrecog.oo : genrecog.c $(RTL_H)
  420.     $(HOSTCC) $(HOSTCFLAGS) -c genrecog.c -o genrecog.oo
  421.  
  422. genextract : genextract.oo rtl.oo $(LIBDEPS1)
  423.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o genextract genextract.oo rtl.oo $(LIBS1)
  424.  
  425. genextract.oo : genextract.c $(RTL_H)
  426.     $(HOSTCC) $(HOSTCFLAGS) -c genextract.c -o genextract.oo
  427.  
  428. genpeep : genpeep.oo rtl.oo $(LIBDEPS1)
  429.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o genpeep genpeep.oo rtl.oo $(LIBS1)
  430.  
  431. genpeep.oo : genpeep.c $(RTL_H)
  432.     $(HOSTCC) $(HOSTCFLAGS) -c genpeep.c -o genpeep.oo
  433.  
  434. genoutput : genoutput.oo rtl.oo $(LIBDEPS1)
  435.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o genoutput genoutput.oo rtl.oo $(LIBS1)
  436.  
  437. genoutput.oo : genoutput.c $(RTL_H)
  438.     $(HOSTCC) $(HOSTCFLAGS) -c genoutput.c -o genoutput.oo
  439.  
  440. genattr : genattr.oo rtl.oo $(LIBDEPS1)
  441.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o genattr \
  442.      genattr.oo rtl.oo $(LIBS1)
  443.  
  444. genattr.oo : genattr.c $(RTL_H) config.h
  445.     $(HOSTCC) -c $(HOSTCFLAGS) genattr.c -o genattr.oo
  446.  
  447. genattrtab : genattrtab.oo rtl.oo rtlanal.oo $(LIBDEPS1)
  448.     $(HOSTCC) $(HOSTCFLAGS) $(LDFLAGS) -o genattrtab \
  449.      genattrtab.oo rtl.oo rtlanal.oo $(LIBS1)
  450.  
  451. genattrtab.oo : genattrtab.c $(RTL_H) config.h insn-config.h
  452.     $(HOSTCC) -c $(HOSTCFLAGS) genattrtab.c -o genattrtab.oo
  453.  
  454. rtl.oo : rtl.c $(CONFIG_H) $(RTL_H)
  455.     $(HOSTCC) $(HOSTCFLAGS) -c rtl.c -o rtl.oo
  456.  
  457. rtlanal.oo : rtlanal.c $(CONFIG_H) $(RTL_H)
  458.     $(HOSTCC) $(HOSTCFLAGS) -c rtlanal.c -o rtlanal.oo
  459.  
  460. obstack.oo : obstack.c
  461.     $(HOSTCC) $(HOSTCFLAGS) -c obstack.c -o obstack.oo
  462.  
  463. # Making the preprocessor
  464. gcc-cpp.ttp: cccp
  465.     -rm -f gcc-cpp.ttp
  466.     ln cccp gcc-cpp.ttp
  467.  
  468. cccp: cccp.o cexp.o version.o $(LIBDEPS)
  469.     $(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
  470. cexp.o: cexp.c
  471. cexp.c: cexp.y
  472.     $(BISON) cexp.y
  473.     mv cexp.tab.c cexp.c
  474. cccp.o: cccp.c
  475.  
  476. # gnulib is not deleted because deleting it would be inconvenient
  477. # for most uses of this target.
  478. clean:
  479.     -rm -f *.o *.oo $(STAGESTUFF)
  480.     -rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
  481.  
  482. # Get rid of every file that's generated from some other file (except INSTALL).
  483. realclean: clean
  484.     -rm -f $(ALL)
  485.     -rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
  486.     -rm -f errs gnulib TAGS 
  487.     -rm -f core report
  488.     -rm -f internals internals-* internals.?? internals.??s
  489.  
  490. # Copy the files into directories where they will be run.
  491. #install: all
  492. #    install cc1 $(libdir)/gcc-cc1
  493. #    install cpp $(libdir)/gcc-cpp
  494. #    install gcc $(bindir)
  495.  
  496. force:
  497.  
  498. #In GNU Make, ignore whether `stage*' exists.
  499. .PHONY: clean realclean
  500.